import 'package:fish_redux/fish_redux.dart';

enum EngineerMaterAddViewAction {
  action,
  onAdd,
  onDel,
  onTapNumber,
}

class EngineerMaterAddViewActionCreator {
  static Action onAction() {
    return const Action(EngineerMaterAddViewAction.action);
  }

  static Action onAdd() {
    return const Action(EngineerMaterAddViewAction.onAdd);
  }

  static Action onDel(data) {
    return Action(EngineerMaterAddViewAction.onDel, payload: data);
  }

  static Action onTapNumber(model, type) {
    return Action(EngineerMaterAddViewAction.onTapNumber,
        payload: {'model': model, 'type': type});
  }
}
